XIQS Delete Device

From IQsimWiki

Jump to: navigation, search

XIQS Delete Device - GSM Device Management

Description
deleteXIQSDevice ( Long id_device [, Long force_delete] )
Delete the existing device matching the specified id.
Device won't be deleted if it has allocated SIM or if it belongs to some port group (except force_delete parameter is set)
Parameters

Long id_device

Device Id

Long force_delete - optional

Optional parameter. If set, device will be removed even if it belongs to some port group.
Return Values
Return Code
Integer: OK = 1

Error Data structure ( Error Management )

Possible failure code returns
*ERR_OBJ_NOT_FOUND(404) ERR_MSG_DVC_NOT_FOUND
*ERR_UNAUTHORIZED (401) ERR_MSG_OBJ_NOT_OWNED
*ERR_OBJECT_EXISTS(451) ERR_MSG_DVC_IN_USE
*ERR_SRV_INTERNAL (500) ERR_MSG_NO_DB
See Also

getXIQSDeviceList
createXIQSDevice
updateXIQSDevice
getXIQSDevicePortMap
getXIQSDeviceMapList
mapXIQSDevice
unmapXIQSDevice
getXIQSIPConfig
updateXIQSIPConfig
rebootXIQSMachine

Example

[REQUEST]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<command tid="88ee001a-2e07-4c27-8543-c12762792736" name="deleteXIQSDevice">
  <param type="long">1</param>
</command>

[ANSWER (OK)]
<?xml version="1.0" encoding="ISO-8859-1"?>
<event type="return" tid="88ee001a-2e07-4c27-8543-c12762792736">
  <meta-data>
    <meta-value>
      <name>ret_code</name>
      <pos>1</pos>
    </meta-value>
  </meta-data>
  <param type="integer">1</param>
</event>

[ANSWER (Error)]
<?xml version="1.0" encoding="ISO-8859-1"?>
<event type="error">
  <meta-data>
    <meta-value>
      <name>err_code</name>
      <pos>1</pos>
    </meta-value>
    <meta-value>
      <name>err_desc</name>
      <pos>2</pos>
    </meta-value>
  </meta-data>
  <param type="integer">500</param>
  <param type="string"> err.db.connection.failed</param>
</event>

Personal tools
Namespaces
Variants
Views
Actions
Navigation
XIQS XML Protocol
XIQS Framework Libraries
XIQS Command List